<?php

include'JSON.php';
class KonwerterJSON implements Konwerter{
	public function konwertujDane(array $dane)
	{
		// create a new instance of Services_JSON
		$json = new Services_JSON();
		 
		// convert a complexe value to JSON notation, and send it to the browser
		$result = $json->encode($dane);

		echo $result;
		 
		// accept incoming POST data, assumed to be in JSON notation
		//$input = file_get_contents('php://input', 1000000);
		//$value = $json->decode($input);
	}
}
?>